tools/hotplug: use XEN_SCRIPT_DIR instead of hardcoded path
authorOlaf Hering <olaf@aepfle.de>
Wed, 1 Oct 2014 16:41:07 +0000 (18:41 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 6 Oct 2014 14:51:55 +0000 (15:51 +0100)
commitd30c14b1f121b5302aad5135b2c04c6ea1300d85
tree2b5a21bd220372f35253e9b0a339c86971da2ff6
parenta3b5920658db7922539fd5155250e921b7f61078
tools/hotplug: use XEN_SCRIPT_DIR instead of hardcoded path

Helper scripts get installed into XEN_SCRIPT_DIR, but initscripts,
helper scripts and udev rules still refer to the hardcoded location
/etc/xen/scripts/. Update scripts, rules and Makefile to refer to
@XEN_SCRIPT_DIR@ instead.

Update configure.ac to substitute the path in files using
XEN_SCRIPT_DIR. Remove XEN_SCRIPT_DIR from StdGNU.mk and SunOS.mk, its
already in Paths.mk.

Note: In SunOS.mk it refered to PRIVATE_PREFIX, which was introduced by
9f6d07bac9f14aaa8bafe38b4a217e61a3a57842 ("tools: get rid of hardcoded
config dirs").

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
[ ijc -- ran autogen.sh as requested ]
18 files changed:
.gitignore
config/StdGNU.mk
config/SunOS.mk
tools/configure
tools/configure.ac
tools/hotplug/Linux/init.d/xen-watchdog [deleted file]
tools/hotplug/Linux/init.d/xen-watchdog.in [new file with mode: 0644]
tools/hotplug/Linux/init.d/xencommons.in.in
tools/hotplug/Linux/init.d/xendomains [deleted file]
tools/hotplug/Linux/init.d/xendomains.in [new file with mode: 0644]
tools/hotplug/Linux/vif-setup [deleted file]
tools/hotplug/Linux/vif-setup.in [new file with mode: 0644]
tools/hotplug/Linux/xen-backend.rules [deleted file]
tools/hotplug/Linux/xen-backend.rules.in [new file with mode: 0644]
tools/hotplug/Linux/xen-hotplug-common.sh [deleted file]
tools/hotplug/Linux/xen-hotplug-common.sh.in [new file with mode: 0644]
tools/hotplug/Linux/xendomains [deleted file]
tools/hotplug/Linux/xendomains.in [new file with mode: 0644]